<%@ page import="gmusic.bo.*"%>
<%@ page import="java.util.List"%>

<jsp:include page="include/entete.jsp" flush="true">
	<jsp:param name="titre" value="Groupe" />
	<jsp:param name="sousTitre" value="Modifier un artiste" />
</jsp:include>

<%
	ArtistBean ab = (ArtistBean) session.getAttribute("artist");
	List<PaysBean> pays = (List<PaysBean>) session.getAttribute("pays");
%>

<br />

<form name="form" action="GMusic?cmd=ModifierArtisteGM"
	onsubmit="return verifAjoutGroupe();" method="post">
<table align="center">
	<!-- tr align="center">
			<td colspan="4" id="cell3" onmouseover="this.style.color='#cc0000'; this.style.cursor='pointer';" onmouseout="this.style.color='#ffffff';" onclick="document.formafficher.submit()">Liste des groupes<br /><br /></td>
		</tr-->
	<tr>
		<td id="cell3"><b>Nom : </b></td>
		<td><input type="text" name="nom" value="<%=ab.getNom()%>"
			maxlength="50" size="30" /></td>
	</tr>
	<tr>
		<td id="cell3"><b>Pays : </b></td>
		<td><select name="idPays" style="width: 203px">
			<%
				for (int i = 0; i < pays.size(); i++) {
					PaysBean pb = (PaysBean) pays.get(i);
					if (pb.getId() == ab.getPaysId()) {
			%>
			<option value="<%=pb.getId()%>" selected="selected"><%=pb.getNom()%></option>
			<%
				} else {
			%>
			<option value="<%=pb.getId()%>"><%=pb.getNom()%></option>
			<%
				}
				}
			%>
		</select></td>
	</tr>
	<tr>
		<td id="cell3"><b>Commentaire : </b></td>
		<td><textarea name="commentaire" style="width: 200px"><%=ab.getCommentaire() == null ? "" : ab
					.getCommentaire()%></textarea></td>
	</tr>
	<tr align="center">
		<td colspan="2"><input type="hidden" name="id"
			value="<%=ab.getGmid()%>" /> <input type="submit" value="Modifier" />
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>
</form>

<jsp:include page="include/piedPage.jsp" flush="true" />
